![]() |
Sensor Fusion for Kinetis MCUs (ISSDK/KSDK version)
|
Include dependency graph for main_freertos_single_task.c:Go to the source code of this file.
Macros | |
| #define | I2C_DRIVER Driver_I2C1_KSDK2_Blocking |
Functions | |
| void | myI2C_callback (uint32_t event) |
| static void | read_task (void *pvParameters) |
| int | main (void) |
Variables | |
| SensorFusionGlobals | sfg |
| ControlSubsystem | controlSubsystem |
| StatusSubsystem | statusSubsystem |
| PhysicalSensor | sensors [2] |
| EventGroupHandle_t | event_group = NULL |
| uint8_t | sUARTOutputBuffer [256] |
| ARM_DRIVER_I2C | Driver_I2C1_KSDK2_Blocking |
| ARM_DRIVER_I2C * | I2Cdrv = &I2C_DRIVER |
This file shows one recommended way to incorporate sensor fusion capabilities into a FreeRTOS project.
Definition in file main_freertos_single_task.c.
| #define I2C_DRIVER Driver_I2C1_KSDK2_Blocking |
Definition at line 79 of file main_freertos_single_task.c.
Referenced by main().
| int main | ( | void | ) |
This is a FreeRTOS (single task) implementation of the NXP sensor fusion demo build.
Definition at line 91 of file main_freertos_single_task.c.
Here is the call graph for this function:| void myI2C_callback | ( | uint32_t | event | ) |
Dummy callback function for the I2C driver.
Definition at line 82 of file main_freertos_single_task.c.
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 120 of file main_freertos_single_task.c.
Referenced by main(), and myI2C_callback().
Here is the caller graph for this function:| ControlSubsystem controlSubsystem |
used for serial communications
Definition at line 71 of file main_freertos_single_task.c.
| ARM_DRIVER_I2C Driver_I2C1_KSDK2_Blocking |
KSDK handle for the I2C port defined in Driver_I2C_KSDK2.
| EventGroupHandle_t event_group = NULL |
Definition at line 74 of file main_freertos_single_task.c.
Referenced by main().
| ARM_DRIVER_I2C* I2Cdrv = &I2C_DRIVER |
KSDK handle for the I2C port defined in Driver_I2C_KSDK2.c.
Definition at line 88 of file main_freertos_single_task.c.
Referenced by main().
| PhysicalSensor sensors[2] |
This implementation uses two physical sensors.
Definition at line 73 of file main_freertos_single_task.c.
This is the primary sensor fusion data structure.
Definition at line 70 of file main_freertos_single_task.c.
| StatusSubsystem statusSubsystem |
provides visual (usually LED) status indicator
Definition at line 72 of file main_freertos_single_task.c.
| uint8_t sUARTOutputBuffer[256] |
main output buffer defined in control.c
Definition at line 59 of file control.c.
Referenced by BlueRadios_Init(), fusion_task(), main(), and read_task().